#include <iostream>
int main(){
    int p1,p2;
    std::cout << "Input two integers, will output all integers between the two integers." << std::endl;
    std::cout << "enter:";
    std::cin >> p1 >> p2;
    std::cout << "output:" << std::endl;
    if ( p1 > p2 )
    {
        while( p1 >= p2 )
        {
            std::cout << p1-- << std::endl;
        }
    }else if( p1 < p2){
        while( p1 <= p2 )
        {
            std::cout << p1++ << std::endl;
        }
    }else if( p1 = p2){
            std::cout << p1 << std::endl;
    }
    return 0;
}
